package iotwisp.school.system.qo;

import iotwisp.base.cqrs.BaseQO;
import iotwisp.base.orm.query.QueryCondition;
import iotwisp.base.orm.query.QueryConditionType;
import iotwisp.base.orm.query.QueryConfig;
import lombok.Data;
import lombok.EqualsAndHashCode;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@QueryConfig(daoBeanId = "cityService")
public class CityQO extends BaseQO<String> {

	@QueryCondition(name = "province.id")
	private String provinceId;

	@QueryCondition(name = "province", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchProvince;
}